<?php

namespace app\admin\validate;

use W7\Validate\Validate;

class Fields extends Validate
{
    protected $rule =   [
        'name'                      => 'required',
        'comment'                   => 'required',
        'type'                      => 'required',
    ];

    protected $message  =   [
        'name.required'             => '请输入字段名称',
        'comment.required'          => '请输入字段注释',
        'type.required'             => '请选择字段类型',
    ];
}
